package com.youan.serve.controller.swagger;

import com.youan.pangu.security.bean.LoginInfor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.youan.serve.dao.domain.RoleFunction;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
* <p>
    *  swagger接口描述文件
    * </p>
*
* @author auto_code
* @since 2020-03-04
*/
@Api(tags = "管理接口")
public interface RoleFunctionControllerSwagger {

    @ApiOperation(value = "新增一个RoleFunction实例")
    RoleFunction addRoleFunction(RoleFunction roleFunction, LoginInfor loginInfor);

    @ApiOperation(value = "修改一个RoleFunction实例")
    RoleFunction updateRoleFunction(RoleFunction roleFunction, LoginInfor loginInfor);

    @ApiOperation(value = "获取所有RoleFunction实例")
    List<RoleFunction> selectAllRoleFunction();

    @ApiOperation(value = "根据主键删除一个RoleFunction实例")
    void deleteRoleFunctionByRoleFunctionId(String roleFunctionId);

    @ApiOperation(value = "根据主键获取RoleFunction实例")
    RoleFunction selectRoleFunctionByRoleFunctionId(String roleFunctionId);

    @ApiOperation(value = "根据roleId获取RoleFunction实例")
    List<String> selectRoleFunctionByRoleId(@PathVariable String roleId) throws Exception;

    @ApiOperation(value = "根据functionId和roleId删除一个RoleFunction实例")
    void deleteRoleFunctionByFunctionIdAndRoleId(@PathVariable String roleId, @PathVariable String functionId);
}

